package com.example.tests;

import java.util.Set;

import org.testng.annotations.Test;
	
	public class ContactModificationTest extends TestBase {
		@Test(dataProvider = "contactsFromFile", dataProviderClass = ContactDataGenerator.class)
		public void testValidContactCanBeModificated(ContactObject validContact) throws Exception {
			Set<ContactObject> oldList = app.getContactHelper().getContacts();
			// action		
			app.getContactHelper().modifyContact(0, validContact);
			// verification
			Set<ContactObject> newList = app.getContactHelper().getContacts();
			verifyContactModify(oldList, newList);
		}
	}

		
